/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.pku.smart.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 数据字典
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@TableName("sys_dict")
public class SysDictEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id")
	private Long id;

	/**
	 * 字典名称
	 */
	@NotBlank(message="字典名称不能为空")
	@TableField(value = "name")
	private String name;

	/**
	 * 字典类型
	 */
	@NotBlank(message="字典类型不能为空")
	@TableField(value = "type")
	private String type;

	/**
	 * 字典码
	 */
	@NotBlank(message="字典码不能为空")
	@TableField(value = "code")
	private String code;

	/**
	 * 字典值
	 */
	@NotBlank(message="字典值不能为空")
	@TableField(value = "value")
	private String value;

	/**
	 * 排序
	 */
	@TableField(value = "order_num")
	private Integer orderNum;

	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;

	/**
	 * 删除标记  -1：已删除  0：正常
	 */
	@TableLogic
	@TableField(value = "del_flag")
	private Integer delFlag;

}
